package com.xca.znb.model.impl;

import android.content.Context;

import com.xca.znb.database.UserDAO;
import com.xca.znb.entity.Goods;
import com.xca.znb.model.imodel.IMyGoods;

import java.util.List;

public class MyGoodsImpl implements IMyGoods {
    private UserDAO userDAO ;
    public MyGoodsImpl(Context context){
        userDAO = new UserDAO(context);
    }
    @Override
    public List<Goods> getGoodsOnByPhone(String phone) {
        return userDAO.getGoodsOnByPhone(phone);
    }

    @Override
    public List<Goods> getGoodsOffByPhone(String phone) {
        return userDAO.getGoodsOffByPhone(phone);
    }
}
